<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cgzxExceptionManagementMes-edit" th:object="${cgzxExceptionManagementMes}">
            <input id="gid" name="gid" th:field="*{gid}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">异常编码
0：物料异常
1：工装工具异常
2：人员异常
3：工艺异常
4：质量异常
：</label>
				<div class="col-sm-8">
					<input id="code" name="code" th:field="*{code}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">异常小类
编码为0时
0：物料缺失
1：物料多余
2：物料错误
编码为1时
0：工装工具缺失
编码为2时
0：工种缺失
1：数量不足
编码为3时
0：工艺异常
编码为4时
0：原材料异常
1：自制件异常
：</label>
				<div class="col-sm-8">
					<input id="modelcode" name="modelcode" th:field="*{modelcode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品名称：</label>
				<div class="col-sm-8">
					<input id="productName" name="productName" th:field="*{productName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品编号：</label>
				<div class="col-sm-8">
					<input id="produUid" name="produUid" th:field="*{produUid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工序名称：</label>
				<div class="col-sm-8">
					<input id="opName" name="opName" th:field="*{opName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工序编号：</label>
				<div class="col-sm-8">
					<input id="opCode" name="opCode" th:field="*{opCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工位编号：</label>
				<div class="col-sm-8">
					<input id="workstationCode" name="workstationCode" th:field="*{workstationCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">配送单号：</label>
				<div class="col-sm-8">
					<input id="reqCode" name="reqCode" th:field="*{reqCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料编码
异常编码为0,1,4时才有值
：</label>
				<div class="col-sm-8">
					<input id="matId" name="matId" th:field="*{matId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料数量
异常编码为0,1,4时才有值
：</label>
				<div class="col-sm-8">
					<input id="matNum" name="matNum" th:field="*{matNum}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">派工单号：</label>
				<div class="col-sm-8">
					<input id="dispatchCode" name="dispatchCode" th:field="*{dispatchCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料序列号
异常编码为4，异常小类为1时才有值
：</label>
				<div class="col-sm-8">
					<input id="seriesCode" name="seriesCode" th:field="*{seriesCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料地址
Code=1
modelcode=1,2
需要传入地址码
.当物料错误多余的时候需要传入地址
：</label>
				<div class="col-sm-8">
					<input id="matAddress" name="matAddress" th:field="*{matAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">标志位：</label>
				<div class="col-sm-8">
					<input id="flag" name="flag" th:field="*{flag}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/cgzxExceptionManagementMes";
		$("#form-cgzxExceptionManagementMes-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-cgzxExceptionManagementMes-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
